<!DOCTYPE html>
<html lang="en">
<head>
    <#include "/common/header.ftl">
    <script src="/static/jquery.js"></script>
</head>
<body>
<div id="wrapper" class="toggled">
    <#include "/common/nav.ftl">
    <div class="page-content-wrapper">
        <div class="container-fluid">
            <#include "/common/search.ftl">
            <div class="col-md-12 column">
                <#--提交表单-->
                <form role="form" action="/productInfo/insert" method="post">

                    <#--商品名称-->
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品名称</label>
                        <input name="productName" type="text" class="form-control"/>
                    </div>

                    <#--单价-->
                    <div class="form-group">
                        <label for="exampleInputPassword1">单价</label>
                        <input  name="productPrice"  type="number" class="form-control"/>
                    </div>


                    <#--库存-->
                    <div class="form-group">
                        <label for="exampleInputPassword1">库存</label>
                        <input  name="productStock"  type="number" class="form-control"/>
                    </div>


                    <#--描述-->
                    <div class="form-group">
                        <label for="exampleInputPassword1">描述</label>
                        <input  name="productDescription"  type="text" class="form-control"/>
                    </div>

                    <form method="post" action="/upload" enctype="multipart/form-data">
                        <#--小图-->
                        <div class="form-group">
                            <div class="form-group">
                                <label for="exampleInputFile">商品图片</label>
                                <input type="file" id="exampleInputFile"/>
                            </div>
                        </div>
                    </form>

                    <#--商品状态-->
                    <div class="form-group">
                        <label for="exampleInputPassword1">商品状态</label>
                        <input  name="productStatus"  type="text" class="form-control"/>
                    </div>

                    <#--商品类型-->
                    <div class="form-group">
                        <label for="exampleInputPassword1">商品类型</label>
                    <select name="categoryType">

                        <#list productCategoryList as productCategory>
                            <option value ="${productCategory.categoryType}">${productCategory.categoryName}</option>
                        </#list>
                    </select>
                    </div>

                    <div class="checkbox">
                    </div> <button type="submit" class="btn btn-default">提交</button>
                </form>

            </div>
        </div>
    </div>
</div>
</body>
</html>
<script>

</script>